using Microsoft.EntityFrameworkCore;

using Tool;

namespace Abc.Core.Entities
{
    /// <summary>
    /// Web访问日志
    /// </summary>
    public class WebVisitLog : CreateEntity
    {
        /// <summary>
        /// 远程地址，IP地址
        /// </summary>
        [Comment("远程地址，IP地址")]
        public string RemoteAddr { get; set; }

        /// <summary>
        /// 请求地址
        /// </summary>
        [Comment("请求地址")]
        public string RequestUrl { get; set; }

        /// <summary>
        /// 请求方法
        /// </summary>
        [Comment("请求方法")]
        public string Method { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        [Comment("请求参数")]
        public string Params { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        [Comment("异常信息")]
        public string Exception { get; set; }

        /// <summary>
        /// 日志内容
        /// </summary>
        [Comment("日志内容")]
        public string LogContent { get; set; }

        /// <summary>
        /// 关键词，多个用英文逗号隔开,方便查询用
        /// </summary>
        [Comment("关键词，多个用英文逗号隔开,方便查询用")]
        public string Tag { get; set; }

        /// <summary>
        /// 日志类型
        /// </summary>
        [Comment("日志类型")]
        public string Type { get; set; }

        /// <summary>
        /// 参数1
        /// </summary>
        [Comment("参数1")]
        public string Par1 { get; set; }

        /// <summary>
        /// 参数2
        ///</summary>
        [Comment("参数2")]
        public string Par2 { get; set; }

        /// <summary>
        /// 参数3
        /// </summary>
        [Comment("参数3")]
        public string Par3 { get; set; }

        #region ref

        /// <summary>
        /// 用户Id
        /// </summary>
        [Comment("用户Id")]
        public int? UserId { get; set; }

        #endregion ref
    }
}